package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月26日 16时31分05秒
 */
@Table(name = "d_category")
public class DCategory extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_NAME = "name";
	public static final String FIELD_PARENTID = "parentId";
	public static final String FIELD_ENTITY = "entity";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_CREATEUSER = "createUser";
	public static final String FIELD_ITEMTYPE = "itemType";
	public static final String FIELD_SORT = "sort";
	public static final String FIELD_CKEY = "ckey";

	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_NAME = "name";
	public static final String COLUMN_PARENT_ID = "parent_id";
	public static final String COLUMN_ENTITY = "entity";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_CREATE_USER = "create_user";
	public static final String COLUMN_ITEM_TYPE = "item_type";
	public static final String COLUMN_SORT = "sort";
	public static final String COLUMN_C_KEY = "c_key";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "name")
	private String name;
	@Column(name = "parent_id")
	private Long parentId;
	@Column(name = "entity")
	private Short entity;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "create_user")
	private Long createUser;
	private Double sort;
	@Column(name = "item_type")
	private Short itemType;
	@Column(name = "c_key")
	private String ckey;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 类别名称
	 * 
	 * @return name - 类别名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置 类别名称
	 * 
	 * @param name
	 *            - 类别名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取 父类id
	 * 
	 * @return parentId - 父类id
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * 设置 父类id
	 * 
	 * @param parentId
	 *            - 父类id
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * 获取 是否是实体 1是 0否
	 * 
	 * @return entity - 是否是实体 1是 0否
	 */
	public Short getEntity() {
		return entity;
	}

	/**
	 * 设置 是否是实体 1是 0否
	 * 
	 * @param entity
	 *            - 是否是实体 1是 0否
	 */
	public void setEntity(Short entity) {
		this.entity = entity;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 创建用户
	 * 
	 * @return createUser - 创建用户
	 */
	public Long getCreateUser() {
		return createUser;
	}

	/**
	 * 设置 创建用户
	 * 
	 * @param createUser
	 *            - 创建用户
	 */
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	public Double getSort() {
		return sort;
	}

	public void setSort(Double sort) {
		this.sort = sort;
	}

	public Short getItemType() {
		return itemType;
	}

	public void setItemType(Short itemType) {
		this.itemType = itemType;
	}

	public String getCkey() {
		return ckey;
	}

	public void setCkey(String ckey) {
		this.ckey = ckey;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}